<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php

class CMysqlDbConnection implements IDbInterface
{
    private $link;
    
    public function  __construct()
    {
    }

    public function connect($dbAddress, $dbUserName, $dbPassword){
        $link = @mysql_connect($dbAddress, $dbUserName, $dbPassword);
        $this->link = $link;
        return $link;
    }


    public function select_db($dbName, $link){
        $db = @mysql_select_db($dbName, $link);
        return $db;
    }

     
    public function isExistUser($dbUserName){
        $rs = @mysql_query("select * from ".$dbUserName." where 1=0");
        return $rs;
    }
     

     
                                                                                            
}
?>